<?php
require('conexion.php');
session_start();
if(isset($_SESSION['idsuc']))
$idsuc=$_SESSION['idsuc'];
if(isset($_SESSION['idemp']))
$idemp=$_SESSION['idemp'];
if(isset($_SESSION['idven']))
$idven=$_SESSION['idven'];
$sql = "select reserva_venta($idsuc,$idemp);";
$rs = $conn->Execute($sql);
$_SESSION['idven']=$rs->fields[0];
header('location: ./');
?>